package com.alex.serializer;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @ClassName User
 * @Description TODO
 * @Author zjg
 * @Date 2021/12/616:48
 * @Version 2.0
 */

@Data
public class User implements Serializable {

  private Integer id;

  private String name;

  private Date birthDay;

  public User(){

  }

  public User(Integer id, String name, Date birthDay) {
    this.id = id;
    this.name = name;
    this.birthDay = birthDay;
  }


  @Override
  public String toString() {
    return "User{" +
        "id=" + id +
        ", name='" + name + '\'' +
        ", birthDay=" + birthDay +
        '}';
  }
}
